<?php
namespace api\common\model;

class MemberDetail extends \think\Model 
{
    protected $autoWriteTimestamp = true;
    
    public function setPasswordAttr($value)
    {
        return preg_match("/^(###)/",$value)?$value:st_password($value);
    }
    public function setDeleteTimeAttr($value)
    {
        return empty($value)?0:$value;
    }
}
